package com.github.caijh.mall.common;

public class PageReqBody extends PageParams {

    public PageParams getPageParams() {
        return PageParams.builder().page(this.getPage()).limit(this.getLimit()).build();
    }

    public int getCurrent() {
        return this.getPage();
    }

    public int getSize() {
        return this.getLimit();
    }

}
